#include <stdio.h>

int main()
{
	double r,s=0.0;
	int n;
	scanf("%d",&n);
	while(n--)
	{
		scanf("%lf",&r);
		s += r;
		printf("%lf\n",s);
	}
	printf("%f\n",s);
	return 0;
}
